<script setup>
import { inject } from 'vue'
import Child from './Child.vue'
const countFather = inject('count')
const updateCount = inject('updateCount')
</script>

<template>
  <div class="father-page">
    父组件: {{ countFather }}
    <button @click="updateCount(50)">改数字</button>
    <Child></Child>
  </div>
</template>

<style scoped></style>
